<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>手机预览框</title>
    <link rel="stylesheet" type="text/css" href="../css/mview.css?v=20230607112">
    <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/c/font_4109983_698h6iolmzk.css">
</head>

<body>
    <div class="m-phone">
        <div class="m-phone-cotainer">
            <div class="m-phone-header">
                <i class="iconfont icon-guanbi"></i>
                <h3>网页标题</h3>
                <i class="iconfont icon-yonghu"></i>
            </div>
            <div class="m-phone-body">
                <div class="m-chat" style="padding-bottom: 162px;">
                    <ul>
                        <li class="left">
                            <img class="avatar" src="https://wwcdn.weixin.qq.com/node/wework/images/avatar2.96df991a19.png">
                            <div class="message"><span>您好，欢迎进入摩尔企服咨询集团有限公司，专业从事<font style="color: rgb(225, 60, 57);">私域引流工具</font>的<font style="color: rgb(225, 60, 57);">软件</font>服务，希望可以帮到您。</span></div>
                        </li>
                        <li class="left"><img class="avatar" src="https://wwcdn.weixin.qq.com/node/wework/images/avatar2.96df991a19.png">
                            <div class="message"><span>您想咨询哪方面的引流问题？</span></div>
                        </li>
                        <li class="right"><img class="avatar" src="https://thirdwx.qlogo.cn/mmopen/vi_32/Q3auHgzwzM6gVRkCqQSFGdybRgKwicAc7e2NIv7zh8VEoFicuUgv5cu3EjRWgRhurqHjbNcWZ3kqH23NwQCqibcjw/132">
                            <div class="message"><span>企业微信</span></div>
                        </li>
                        <li class="left"><img class="avatar" src="https://wwcdn.weixin.qq.com/node/wework/images/avatar2.96df991a19.png">
                            <div class="message"><span>请问您的日投放金额是多少？</span></div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <style type="text/css">
    .m-phone {
        display: flex;
        width: 300px;
        height: 611px;
        background-image: url(https://m-view.oss-cn-beijing.aliyuncs.com/static/iphone14.png);
        background-size: 100%;
        background-repeat: no-repeat;
        padding: 45px 15px 15px 15px;
        box-sizing: border-box;
        margin-left: 30px;
    }

    .m-phone-cotainer {
        width: 270px;
        height: 530px;
        overflow: hidden;
    }

    .m-phone-header {
        width: 100%;
        height: 40px;
        line-height: 40px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        border-bottom: thin solid #d8d8d8;
    }

    .m-phone-header h3 {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        font-weight: 500;
        margin: 0;
        padding: 0;
    }

    .m-phone-header i {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 24px;
        text-align: left;
    }

    .m-phone-header i:last-child {
        text-align: right;
    }

    .m-phone-body {
        width: 100%;
        height: 530px;
        padding: 10px;
        box-sizing: border-box;
        overflow-y: scroll;
        font-size: 14px;
    }

    .m-chat {
        width: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        height: auto;
    }

    .m-chat ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .m-chat ul li {
        list-style: none;
        display: flex;
        flex-direction: row;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .m-chat ul li .avatar {
        width: 40px;
        height: 40px;
        border-radius: 3px;
    }

    .m-chat ul li .message {
        flex: 1;
        display: flex;
        flex-direction: row;
        line-height: 20px;
    }

    .m-chat ul li .message span {
        float: left;
        font-size: 14px;
        margin: 0 10px;
        line-height: 20px;
        padding: 10px;
        border-radius: 4px;
        position: relative;
        word-break: break-all;
        background: #fff;
    }
    .m-chat ul .left .message span:before {
        position: absolute;
        top: 16px;
        left: -5px;
        content: "";
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-right: 5px solid #FFFFFF;
        width: 0;
        height: 0;
    }

    .m-chat ul .right .message span:after {
        position: absolute;
        top: 16px;
        right: -5px;
        content: "";
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 5px solid #FFFFFF;
        width: 0;
        height: 0;
    }

    .m-chat ul li.right {
        flex-direction: row-reverse;
    }

    .m-chat ul .right .message {
        flex: 1;
        display: flex;
        flex-direction: row;
        flex-direction: row-reverse;
    }
    </style>
</body>

</html>